public class Test {
    public static void main(String[] args) {
        MyArraysList myArraysList = new MyArraysList();
        myArraysList.add(1);
        myArraysList.add(2);
        try{
            int i = myArraysList.get(-1);
            System.out.println(i);
        }catch(EmptyllegalLity e){
            e.printStackTrace();
        }catch(PosIllegaLity e){
            e.printStackTrace();
        }
    }
}
